]> dgit.raspbian.org Git - gnome-shell.git/commit
magnifier: Scale the sprite to match the current monitor scaling
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 27 Mar 2019 15:14:39 +0000 (16:14 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 1 Aug 2025 14:29:38 +0000 (16:29 +0200)
commit7ee39cd5e1058105dc9d09cd02c50a5fb823a97d
treedb58a3bc56dfb9f41bdaa4e61a715a0f399363fa
parent2a812149d111df6c48c9fee7d0b51976a7c8e09e
magnifier: Scale the sprite to match the current monitor scaling

Compute the sprite texture scale (unfortunately using a workaround, based on
mutter cursor size preferences, tying to figure out the closest texture integer
scaling), and use this value to compute the scaling that should be applied to
the sprite in order to match the current monitor scaling.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/475>
(cherry picked from commit 484928e80acb4b6d161dcdd50d48e7731b4f9bee)
js/ui/layout.js
js/ui/magnifier.js